package com.rraj.controller;

import com.rraj.service.TestService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by hqm on 2017/11/30.
 */
@RestController
public class TestController {

    @Resource
    private TestService testService;

    @Value("${profile}")
    private String profile;

    @RequestMapping("/test")
    public String test() {
        return testService.test();
    }
}
